load feval
load avgstep
close all

f11 = feval(1:6:end)
f21 = feval(2:6:end)
f31 = feval(3:6:end)
f12 = feval(4:6:end)
f22 = feval(5:6:end)
f32 = feval(6:6:end)

a11 = avgstep(1:6:end)
a21 = avgstep(2:6:end)
a31 = avgstep(3:6:end)
a12 = avgstep(4:6:end)
a22 = avgstep(5:6:end)
a32 = avgstep(6:6:end)

figure();
subplot(2,2,1)
hold all
plot(f11,'.-')
plot(f21,'.-')
plot(f31,'.-')
legend('Runge-Kutta','VSVO','NDF')
hold off;

subplot(2,2,2)
hold all
plot(f12,'.-')
plot(f22,'.-')
plot(f32,'.-')
legend('Runge-Kutta','VSVO','NDF')
hold off;


subplot(2,2,3)
hold all
plot(a11,'.-')
plot(a21,'.-')
plot(a31,'.-')
legend('Runge-Kutta','VSVO','NDF')
hold off;

subplot(2,2,4)
hold all
plot(a12,'.-')
plot(a22,'.-')
plot(a32,'.-')
legend('Runge-Kutta','VSVO','NDF')
hold off;